package lambda;

public class CommonErr1 {
    // Test lambda wrapped in parentheses errs, remove outside parens to clear error

    interface Foobar {
        int get(int i);
    }

    public void method() {
        Foobar foobar = ((int x) -> {--x;return x;});
        System.out.println(foobar.get(5));
    }
    public static void main(String...args){
        CommonErr1 ce1 = new CommonErr1();
        ce1.method();
    }
}
